package cn.bfay.lion.jingdong.client.rsp;

import lombok.Data;

import java.util.List;

/**
 * JdProductCouponRsp.
 *
 * @author wangjiannan
 */
@Data
public class JdProductCouponRsp {
    /**
     * skuid.
     */
    private String skuid;

    /**
     * jdProductCoupons
     */
    private List<JdProductCoupon> jdProductCoupons;

    @Data
    public static class JdProductCoupon {
        /**
         * couponType.
         */
        private String couponType;
        /**
         * 折扣券方式 "couponstyle":3  使用"discountdesc";满减券方式 "couponstyle":0.
         */
        private String couponstyle;
        /**
         * roleId.
         */
        private String roleId;
        /**
         * quota.
         */
        private Double quota;
        /**
         * discount.
         */
        private Double discount;
        /**
         * "discountdesc":{"high":"1000","info":[{"quota":"119","discount":"0.9"}]}.
         */
        private Discountdesc discountdesc;
        /**
         * hourcoupon.
         */
        private String hourcoupon;
        /**
         * name.
         */
        private String name;
        /**
         * timeDesc.
         */
        private String timeDesc;

        /**
         * 自己添加.
         */
        private Double coupon;
        /**
         * 自己添加:0-无券；1-满减钱券；2-满减折扣券.
         */
        private Integer type;

        @Data
        public static class Discountdesc {
            /**
             * 最高减钱.
             */
            private Double high;
            private List<DiscountdescInfo> info;
        }

        @Data
        public static class DiscountdescInfo {
            private Double quota;

            private Double discount;
        }
    }
}
